package com.jt.travel.store.service;

import com.jt.travel.store.dao.CartMapper;
import com.jt.travel.store.dao.TRouteMapper;
import com.jt.travel.store.pojo.TRoute;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class CartServiceImpl implements CartService{

    @Autowired
    CartMapper cartMapper;
    @Override
    public Map byUserid(Integer userId) {
        List<TRoute> list=cartMapper.selectCartByid(userId);
        Map map=new HashMap();
        map.put("list",list);
        return map;
    }
}
